* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
jump to the next line if we are at the end of the line.
+ (gtk_text_view_move_cursor_internal): Make movement by
+ paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
2005-06-23 Tor Lillqvist <tml@novell.com>
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
jump to the next line if we are at the end of the line.
+ (gtk_text_view_move_cursor_internal): Make movement by
+ paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
2005-06-23 Tor Lillqvist <tml@novell.com>
* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
jump to the next line if we are at the end of the line.
+ (gtk_text_view_move_cursor_internal): Make movement by
+ paragraphs up/down symmetric. (#307055, Behnam Esfahbod)
2005-06-23 Tor Lillqvist <tml@novell.com>
break;
case GTK_MOVEMENT_PARAGRAPHS:
- g_print ("move paragraphs: %d %d\n",
- count, gtk_text_iter_get_line_offset (&newplace));
if (count > 0)
{
if (!gtk_text_iter_ends_line (&newplace))
else if (count < 0)
{
if (gtk_text_iter_get_line_offset (&newplace) > 0)
- {
- gtk_text_iter_set_line_offset (&newplace, 0);
- ++count;
- }
+ gtk_text_iter_set_line_offset (&newplace, 0);
gtk_text_iter_forward_visible_lines (&newplace, count);
gtk_text_iter_set_line_offset (&newplace, 0);
}